<?php
require_once("../includes/Student.class.php");
require_once("../includes/Staff.class.php");
require_once("../includes/User.class.php");

    $user_ID = $_GET["ID"];
    if($user_ID=="")
    {
	 echo "PLease Enter_ID .";
    }
	else {
	
	$found_user = User::authenicate_ID($user_ID);
    if($found_user){
    $user = new User();
    $user->set_id($user_ID);
    $user->delete();
	}
	else{
	 echo $message="please Retype ID!";
	}


    $student = new Student();
    $student->set_id(Student::find_student_id($user_ID));
    $student->delete();


    $staff = new Staff();
    $staff->set_id(Staff::find_staff_id($user_ID));
    $staff->delete();

}